package cn.shop.ordersystem.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class OrderDetailVO {
    private Integer id;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒",timezone = "GMT+8")
    private Date created;
    private String userId;
    private Integer tableId;
    private Double sumPrice;
    private String details;
    private String url;
    private List<FoodDetailVO> food;

    @Override
    public String toString() {
        return "OrderDetailVO{" +
                "id=" + id +
                ", created=" + created +
                ", userId='" + userId + '\'' +
                ", tableId=" + tableId +
                ", sumPrice=" + sumPrice +
                ", details='" + details + '\'' +
                ", url='" + url + '\'' +
                ", food=" + food +
                '}';
    }

    public Double getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(Double sumPrice) {
        this.sumPrice = sumPrice;
    }

    public List<FoodDetailVO> getFood() {
        return food;
    }

    public void setFood(List<FoodDetailVO> food) {
        this.food = food;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getTableId() {
        return tableId;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }
    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
